package lesson01;

import java.io.File;

public class Demo_102 {
    public static void main(String[] args) {
        File file = new File("D:/temp");
        File file1 = new File(file, "test/hello.txt");
        System.out.println(file1);

        File file2 = new File("D:/temp/test/hello.txt");
        System.out.println(file2);

        File file3 = new File("D:/temp/test", "hello.txt");
        System.out.println(file3);
    }














    /*public static void main(String[] args) {
        File file = new File("d:/temp");
        File file1 = new File(file, "test/hello.txt");
        System.out.println(file1);

        File file2 = new File("d:/temp/test/hello.txt");
        System.out.println(file2);

        File file3 = new File("d:/temp/test", "hello.txt");
        System.out.println(file3);
    }*/
}
